if [ $# = 0 ]; then
	mkdir build 2>/dev/null
	cd build
	cmake .. >/dev/null
else
	case $1 in
		"com" )
			cd build
			make $2
			;;
		"clean" )
			for file in $(find build/ -maxdepth 1 -type d | grep -v -e "build/$" -e "3rdParty"); do
				rm -R $file; 
			done
			;;
		"reset" )
			rm -Rf build/
			;;
	esac
fi